<template>
  <!-- 设置密码 -->
  <view class="container" v-if="guidePages">
    <u-toast ref="uToast" />
    <view class="1234" v-if="firsttime">
      <view class="signbox flex flex-jc-sb">
        <view class="quick">
          <view class="quitext">
            设置密码
          </view>
          <view class="un">
            <!-- 不可与登录密码相同 -->
          </view>
        </view>
        <view class="skip" @click="skipindex">
          跳过
        </view>
      </view>
      <view class="tel">
        <view class="input">
          <view class="enter-code mt-20">
            <u-message-input mode="bottomLine" textnumber="password" :width="88" name="Password" v-model="Password"
              :maxlength="6" :breathe="true" :focus="true" active-color="#FBB000" inactive-color="#666" @change="changeInputf"
              @finish="finish"></u-message-input>
          </view>
        </view>
      </view>
      <view class="btn">
        <button v-show="isDisabled" class="btn-disable">下一步</button>
        <button v-show="!isDisabled" class="btn-primary" @click="fistgoit()">下一步</button>
      </view>
    </view>
    <view class="1234" v-else>
      <view class="signbox flex flex-jc-sb">
        <view class="quick">
          <view class="quitext">
            确认密码
          </view>
          <view class="un">
            请重复输入一次
          </view>
        </view>
      </view>
      <view class="tel">
        <view class="input">
          <view class="enter-code mt-20">
            <u-message-input textnumber="password" mode="bottomLine" :width="88" name="Password" v-model="Passwordagen"
              :maxlength="6" :breathe="true" :focus="true" active-color="#FBB000" inactive-color="#666" @change="changeInputss"
              @finish="finishcss"></u-message-input>
          </view>
        </view>
      </view>
      <view class="btn">
        <button class="btn-primary" @click="login">下一步</button>
      </view>
    </view>
  </view>
</template>

<script src="./passwordLogin.js"></script>

<style scoped lang="scss">
  @import './passwordLogin.scss';
</style>
